package com.lil.shiro.dao;

import com.lil.shiro.model.Menu;
import com.lil.shiro.model.Role;
import org.apache.ibatis.annotations.*;

import java.util.Set;

@Mapper
public interface MenuMapper extends MyBaseMapper<Menu> {


    @Select(" SELECT R.* FROM MENU_INFO R,ROLE_MENU UR WHERE R.menu_id = UR.menu_id " +
            " AND UR.role_id = #{roleId} ")
    Set<Menu> getMenuByRoleId(Integer roleId);

}
